/**
 * Created by dio on 2017/2/23 0023.
 */
import React, {Component} from 'react';
import {TouchableOpacity, Text} from 'react-native';

export default class ModuleButton extends Component{

    constructor(props) {
        super(props);
        this.state = {
            text:this.props.text
        };
    }

    render()
    {
        return (<TouchableOpacity
            onPress={this.props.onClickedListener}
            style={this.props.buttonStyle}>
            <Text style={this.props.textStyle}>{this.state.text}</Text>
            <Text style={this.props.textStyle2}>{this.props.text2}</Text>
        </TouchableOpacity>);
    }
}
